using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableWantedPerformanceRankDao:DaoBase<TableWantedPerformanceRank>
    {
        public override void AddPrimaryIndex(TableWantedPerformanceRank model)
        {
            cachePrimary[model.id.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableWantedPerformanceRank.txt";
        }

        protected override TableWantedPerformanceRank ParseRowData(string[] rowData)
        {
            TableWantedPerformanceRank data = new TableWantedPerformanceRank();

            if (string.IsNullOrEmpty(rowData[0]))
            {
                data.id = 0;
            }
            else
            {
                data.id = int.Parse(rowData[0]);
            }
			data.PerformanceRank = rowData [1];
			data.PerformanceRankReward = rowData [2];

            return data;
        }



    }

}
